/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package acervo.util;

import acervo.model.Midia;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author Fernando
 */
public class Tabela {  
       
        
        public static void apagarLinhas(JTable tabela){
            DefaultTableModel modelo = (DefaultTableModel) tabela.getModel();
            for (int i = 0; i < modelo.getRowCount(); i++) {               
                modelo.removeRow(0);      
            }
        }
}
